<template>
  <div class="wrap headerwrap">
    <h1 class="logobox">
      <img src="../assets/img/indexLogo.6f8ac4f0.png" alt="" />
    </h1>
    <ul class="navbox">
      <li class="current"><router-link to="/home">首页</router-link></li>
      <li><router-link to="/goods">全部商品</router-link></li>
      <li><router-link to="/user">个人中心</router-link></li>
      <li><router-link to="/order">我的订单</router-link></li>
      <li><router-link to="/free">专属福利</router-link></li>
    </ul>
    <div class="searchbox">
      <input type="text" placeholder="请输入关键字" />
      <span>
        <img src="../assets/img/search.png" alt="" />
      </span>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  metheds: {},
};
</script>

<style lang="less" scoped>
.headerwrap {
  height: 118px;
  line-height: 118px;
  display: flex;
  justify-content: space-between;
  // 弹性 <div> 元素的所有项目的居中对齐
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  color: #242b39;
  font-family: SourceHanSansSC;
  .navbox {
    display: flex;
    width: 500px;
    justify-content: space-between;
    a {
      cursor: pointer;
      text-decoration: none;
      color: #242b39;
    }
    .current a {
      color: #0a328e;
      font-weight: 700;
    }
  }
  // .router-link-active {
  // }
  .searchbox {
    display: flex;
    input {
      width: 214px;
      height: 40px;
      border: 1px solid #dedede;
      border-radius: 20px 0px 0px 20px;
      outline: none;
      box-sizing: border-box;
      padding-left: 20px;
    }
    span {
      width: 50px;
      height: 40px;
      line-height: 40px;
      background: #0a328e;
      border-radius: 0px 20px 20px 0px;
      text-align: center;
      img {
        width: 15px;
        height: 15px;
      }
    }
  }
}
</style>